package com.zkn.orm.spring.data.jpa.repository;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.PagingAndSortingRepository;

import com.zkn.orm.spring.data.jpa.model.Department;

public interface DepartmentPagingRepository extends
		PagingAndSortingRepository<Department, Integer> {

	Page<Department> findByDepartmentName(String departmentName, Pageable pageable);

	Page<Department> findByDepartmentNameLike(String departmentNameKeyword, Pageable pageable);

	Page<Department> findByDepartmentNameContaining(String departmentNameKeyword, Pageable pageable);
}
